migrate to ESLint flat config, convert to ESM#4737
Merged
Conversation
✅ Deploy Preview for react-native ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Contributor
|
can you make sure ide detection still works? because the eslint extension in vscode sometimes stops working when migrating to eslint v9 here's an example |
Collaborator
Author
Contributor
|
awesome, it seems as long as the eslint config is exported from the root of the project then it's correctly detected by IDEs, so in the case of nextra i needed to reexport from root it because it's defined in a package |
robhogan
approved these changes
Sep 11, 2025
robhogan
left a comment
Contributor
There was a problem hiding this comment.
This is some really nice cleanup and modernisation, thanks!
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Why
Refactor and migrate to flat config ESLint v9 setup. Convert monorepo to ESM to leverage properly minimal required Node version and simplify linting.
How
Upgrade ESLint to v9, convert setup to flat config, remove redundant stand-alone Prettier checks.
In the process, I have also:
scriptsdirectory, and all monorepo packages resides inpackagesdirectorylint-examplespackages scripts, and formatted./docsfiles using itsync-api-docspackages, it runs correctly, but looks like no files in core repo contain@generate-docsannotation anymoreremark-lint-no-broken-external-links checkplugin for unversioned docs via new script which should be run locallyimage-checkscriptFuture TODOs
@eslint/csscannot parse SCSS files yet), for now we only use stand-alone Prettier to format the filesTest plan
All lint checks and tests across monorepo are working and do not yield any errors. Website apps runs and builds as expected.